// pages/settings/settings.js
Page({
  //返回上一页
  onClickLeft(){
      wx.navigateBack({
        delta:1
      })
  },
  data: {
     show: false,
    isShow:false
   },
   getUserInfo(event) {
    this.setData({ show: true })
      },
    logout(){
      this.setData({ isShow: true })
    },
    onClose() {
        this.setData({ show: false });
      },
    messageNotice(){
      wx.navigateTo({
        url: '/pages/messageNotification/messageNotification',
      })
    },
    btnLogout(){
      const app = getApp()
      app.setToken('token','')
      wx.redirectTo({
        url: '/pages/login/login',
      })
    }
})
